編輯這篇文章時,HTML Form相關的資料如下:
<form method="POST" action="http://ithelp.ithome.com.tw/articles/10187769/draft" accept-charset="UTF-8">
觀察送出的Request,並沒有Accept-Charset
的資料
POST /articles/10187769/draft HTTP/1.1
Host: ithelp.ithome.com.tw
Connection: keep-alive
Content-Length: 487
Cache-Control: max-age=0
Origin: http://ithelp.ithome.com.tw
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Referer: http://ithelp.ithome.com.tw/articles/10187769/draft
Accept-Encoding: gzip, deflate
Accept-Language: zh-TW,zh;q=0.8,en-US;q=0.6,en;q=0.4,pt;q=0.2
Cookie: (略)
根據RFC7231,沒有Accept-Charset
的資料表示客戶端接受任何編碼形式的Response。
charset為case-insensitive,且如列表